export default function event(vm, eventsPool) {
  //遍历map数据
  for (let [node, info] of eventsPool) {
    // console.log(node); button
    // console.log(info); { "type": "click", "handler": "showImg1" }

    //this访问showImg1
    vm[info.handler.name] = info.handler;

    //绑定事件处理函数
    node.addEventListener(info.type, vm[info.handler.name].bind(vm), false);

  }
}